import {Application} from 'egg';

export default(app:Application)=>{
    const {CHAR}=app.Sequelize;
    const model=app.model.define('UnitDepartment',{
        unit_department_id:{
            type:CHAR(32),
            primaryKey:true
        },//主键
        work_unit_id:CHAR(32),//单位id
        department_id:CHAR(32),//部门id
        is_delete:CHAR(32),//标识是否删除（0：否，1：是）
    },{tableName:'t_unit_department'});
    return model;
}
export class WorkUnit {
    unit_department_id: string;
    work_unit_id: string;
    department_id: string;
    is_delete: string;
}